<?php
class Core_Business_Trainingzone extends Core_Business_Abstract {
	private $_id;
	private $_trainingid;
	private $_codeinsee;
	
	
	public function getId() {return $this->_id;}
	public function setId($value) {$this->_id = $value;}
	
	public function getTrainingid() {return $this->_trainingid;}
	public function setTrainingid($value){$this->_trainingid=$value;}
	
	public function getCodeinsee() {return $this->_codeinsee;}
	public function setCodeinsee($value) {$this->_codeinsee=$value;}
	
	public function getTraining() {
		return Core_Business_Training::getById($this->_trainingid);
	}
	public function save() {
		$map = new Core_Data_Mappers_Trainingzone();
		$map->save($this);
	}
	
}